import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;

import javax.swing.*;
import org.jvnet.substance.*;
import org.jvnet.substance.button.StandardButtonShaper;
import org.jvnet.substance.theme.*;
import org.jvnet.substance.watermark.*;
import org.jvnet.substance.theme.transform.*;
import org.jvnet.substance.utils.SubstanceConstants;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class frmMensaje extends javax.swing.JFrame {
	private JPanel pnlMensaje;
	private JButton btnAceptar;
	private JLabel lblMensaje;

	
	public frmMensaje() {
		super();
		initGUI();
		this.setResizable(false);
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			{
				pnlMensaje = new JPanel();
				getContentPane().add(pnlMensaje, BorderLayout.CENTER);
				pnlMensaje.setBackground(new java.awt.Color(255, 255, 255));
				pnlMensaje.setLayout(null);
				{
					lblMensaje = new JLabel();
					pnlMensaje.add(lblMensaje);
					lblMensaje.setText(" ");
					lblMensaje.setBounds(12, 13, 669, 53);
					lblMensaje.setFont(new java.awt.Font("Bitstream Charter", java.awt.Font.BOLD,15));
					lblMensaje.setForeground(new java.awt.Color(0,0,0));
				}
				{
					Icon aceptarMensaje = new ImageIcon(getClass().getResource("src/resources/Imagenes/aceptar20x20.png"));
					btnAceptar = new JButton("Aceptar", aceptarMensaje);
					btnAceptar.putClientProperty(SubstanceLookAndFeel.BUTTON_SHAPER_PROPERTY, new StandardButtonShaper());
					btnAceptar.putClientProperty(SubstanceLookAndFeel.BUTTON_SIDE_PROPERTY, SubstanceConstants.Side.BOTTOM);
					pnlMensaje.add(btnAceptar);
					btnAceptar.setBounds(270, 60, 125, 35);
					btnAceptar.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							
							frmMensaje.this.setVisible(false);
							//System.out.println("btnAceptar.actionPerformed, event="+evt);
							//TODO add your code for btnAceptar.actionPerformed
						}
					});
				}

			}
			pack();
			this.setSize(703, 133);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

	public JLabel getLblMensaje() {
		return lblMensaje;
	}

	public void setLblMensaje(JLabel lblMensaje) {
		this.lblMensaje = lblMensaje;
		lblMensaje.setAutoscrolls(true);
	}

}
